<?php

namespace app\shop\model\examination;

use app\common\enum\order\OrderSourceEnum;
use \app\common\model\examination\ExaminationUserAward as ExaminationUserAwardModel;


/**
 * 课程模型
 */
class ExaminationUserAward extends ExaminationUserAwardModel
{
    /**
     * 课程列表
     */
    public function getList($data)
    {
        $model = $this;
        $list = $model->with(['user','award.image','log'])
            ->order(['id' => 'desc'])
            ->paginate($data);
        return $list;
    }




    /**
     * 修改状态
     */
    public function setStatus($state)
    {
        return $this->save(['is_show' => $state]) !== false;
    }



}
